using System;

[Serializable] public class AttackData
{
    public float physicalDamage;
    public float elementalDamage;
    public bool isCrit;
    public ElementType elementType;
    public ElementalEffectData effectData;
    public AttackData(Entity_Stat stats, DamageScaleData damageScaleData)
    {
        physicalDamage = stats.GetPhysicalDamage(out isCrit, damageScaleData.physical);
        elementalDamage = stats.GetElementalDamage(out elementType, damageScaleData.elemental);

        effectData = new(stats, damageScaleData);
    }
}
